home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / progressDlg / nsIProgressDialog.h
C/C++ Source or Header  |  2006-05-08  |  6KB  |  177 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIProgressDialog.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIProgressDialog_h__
  6. #define __gen_nsIProgressDialog_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDownload_h__
  10. #include "nsIDownload.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMWindow; /* forward declaration */
  18.  
  19. class nsIObserver; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIProgressDialog */
  23. #define NS_IPROGRESSDIALOG_IID_STR "20e790a2-76c6-462d-851a-22ab6cbbe48b"
  24.  
  25. #define NS_IPROGRESSDIALOG_IID \
  26.   {0x20e790a2, 0x76c6, 0x462d, \
  27.     { 0x85, 0x1a, 0x22, 0xab, 0x6c, 0xbb, 0xe4, 0x8b }}
  28.  
  29. class NS_NO_VTABLE nsIProgressDialog : public nsIDownload {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPROGRESSDIALOG_IID)
  33.  
  34.   /**
  35.     * Open the dialog
  36.     *
  37.     * @param aParent  Parent window; optional (if null, then
  38.     *                 a top-level window is created)
  39.     */
  40.   /* void open (in nsIDOMWindow aParent); */
  41.   NS_IMETHOD Open(nsIDOMWindow *aParent) = 0;
  42.  
  43.   /**
  44.     * Whether the download should be cancelled when the progress
  45.     * dialog is closed using the standard OS close box.  This is
  46.     * useful for showing the progress dialog as an information
  47.     * window, which is what download manager does.
  48.     */
  49.   /* attribute PRBool cancelDownloadOnClose; */
  50.   NS_IMETHOD GetCancelDownloadOnClose(PRBool *aCancelDownloadOnClose) = 0;
  51.   NS_IMETHOD SetCancelDownloadOnClose(PRBool aCancelDownloadOnClose) = 0;
  52.  
  53.   /**
  54.     * Observer for this dialog. If set, receives the following topics:
  55.     *   oncancel - observer should cancel the transfer
  56.     *   onpause  - observer should suspend the transfer
  57.     *   onresume - observer should resume the suspended transfer
  58.     * For each of those, the subject will be the nsIProgressDialog.
  59.     */
  60.   /* attribute nsIObserver observer; */
  61.   NS_IMETHOD GetObserver(nsIObserver * *aObserver) = 0;
  62.   NS_IMETHOD SetObserver(nsIObserver * aObserver) = 0;
  63.  
  64.   /**
  65.    * The dialog object itself.  This might be null if the dialog isn't
  66.    * open yet, or has been closed.
  67.    */
  68.   /* attribute nsIDOMWindow dialog; */
  69.   NS_IMETHOD GetDialog(nsIDOMWindow * *aDialog) = 0;
  70.   NS_IMETHOD SetDialog(nsIDOMWindow * aDialog) = 0;
  71.  
  72. };
  73.  
  74. /* Use this macro when declaring classes that implement this interface. */
  75. #define NS_DECL_NSIPROGRESSDIALOG \
  76.   NS_IMETHOD Open(nsIDOMWindow *aParent); \
  77.   NS_IMETHOD GetCancelDownloadOnClose(PRBool *aCancelDownloadOnClose); \
  78.   NS_IMETHOD SetCancelDownloadOnClose(PRBool aCancelDownloadOnClose); \
  79.   NS_IMETHOD GetObserver(nsIObserver * *aObserver); \
  80.   NS_IMETHOD SetObserver(nsIObserver * aObserver); \
  81.   NS_IMETHOD GetDialog(nsIDOMWindow * *aDialog); \
  82.   NS_IMETHOD SetDialog(nsIDOMWindow * aDialog); 
  83.  
  84. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  85. #define NS_FORWARD_NSIPROGRESSDIALOG(_to) \
  86.   NS_IMETHOD Open(nsIDOMWindow *aParent) { return _to Open(aParent); } \
  87.   NS_IMETHOD GetCancelDownloadOnClose(PRBool *aCancelDownloadOnClose) { return _to GetCancelDownloadOnClose(aCancelDownloadOnClose); } \
  88.   NS_IMETHOD SetCancelDownloadOnClose(PRBool aCancelDownloadOnClose) { return _to SetCancelDownloadOnClose(aCancelDownloadOnClose); } \
  89.   NS_IMETHOD GetObserver(nsIObserver * *aObserver) { return _to GetObserver(aObserver); } \
  90.   NS_IMETHOD SetObserver(nsIObserver * aObserver) { return _to SetObserver(aObserver); } \
  91.   NS_IMETHOD GetDialog(nsIDOMWindow * *aDialog) { return _to GetDialog(aDialog); } \
  92.   NS_IMETHOD SetDialog(nsIDOMWindow * aDialog) { return _to SetDialog(aDialog); } 
  93.  
  94. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  95. #define NS_FORWARD_SAFE_NSIPROGRESSDIALOG(_to) \
  96.   NS_IMETHOD Open(nsIDOMWindow *aParent) { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(aParent); } \
  97.   NS_IMETHOD GetCancelDownloadOnClose(PRBool *aCancelDownloadOnClose) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCancelDownloadOnClose(aCancelDownloadOnClose); } \
  98.   NS_IMETHOD SetCancelDownloadOnClose(PRBool aCancelDownloadOnClose) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCancelDownloadOnClose(aCancelDownloadOnClose); } \
  99.   NS_IMETHOD GetObserver(nsIObserver * *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObserver(aObserver); } \
  100.   NS_IMETHOD SetObserver(nsIObserver * aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetObserver(aObserver); } \
  101.   NS_IMETHOD GetDialog(nsIDOMWindow * *aDialog) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDialog(aDialog); } \
  102.   NS_IMETHOD SetDialog(nsIDOMWindow * aDialog) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDialog(aDialog); } 
  103.  
  104. #if 0
  105. /* Use the code below as a template for the implementation class for this interface. */
  106.  
  107. /* Header file */
  108. class nsProgressDialog : public nsIProgressDialog
  109. {
  110. public:
  111.   NS_DECL_ISUPPORTS
  112.   NS_DECL_NSIPROGRESSDIALOG
  113.  
  114.   nsProgressDialog();
  115.  
  116. private:
  117.   ~nsProgressDialog();
  118.  
  119. protected:
  120.   /* additional members */
  121. };
  122.  
  123. /* Implementation file */
  124. NS_IMPL_ISUPPORTS1(nsProgressDialog, nsIProgressDialog)
  125.  
  126. nsProgressDialog::nsProgressDialog()
  127. {
  128.   /* member initializers and constructor code */
  129. }
  130.  
  131. nsProgressDialog::~nsProgressDialog()
  132. {
  133.   /* destructor code */
  134. }
  135.  
  136. /* void open (in nsIDOMWindow aParent); */
  137. NS_IMETHODIMP nsProgressDialog::Open(nsIDOMWindow *aParent)
  138. {
  139.     return NS_ERROR_NOT_IMPLEMENTED;
  140. }
  141.  
  142. /* attribute PRBool cancelDownloadOnClose; */
  143. NS_IMETHODIMP nsProgressDialog::GetCancelDownloadOnClose(PRBool *aCancelDownloadOnClose)
  144. {
  145.     return NS_ERROR_NOT_IMPLEMENTED;
  146. }
  147. NS_IMETHODIMP nsProgressDialog::SetCancelDownloadOnClose(PRBool aCancelDownloadOnClose)
  148. {
  149.     return NS_ERROR_NOT_IMPLEMENTED;
  150. }
  151.  
  152. /* attribute nsIObserver observer; */
  153. NS_IMETHODIMP nsProgressDialog::GetObserver(nsIObserver * *aObserver)
  154. {
  155.     return NS_ERROR_NOT_IMPLEMENTED;
  156. }
  157. NS_IMETHODIMP nsProgressDialog::SetObserver(nsIObserver * aObserver)
  158. {
  159.     return NS_ERROR_NOT_IMPLEMENTED;
  160. }
  161.  
  162. /* attribute nsIDOMWindow dialog; */
  163. NS_IMETHODIMP nsProgressDialog::GetDialog(nsIDOMWindow * *aDialog)
  164. {
  165.     return NS_ERROR_NOT_IMPLEMENTED;
  166. }
  167. NS_IMETHODIMP nsProgressDialog::SetDialog(nsIDOMWindow * aDialog)
  168. {
  169.     return NS_ERROR_NOT_IMPLEMENTED;
  170. }
  171.  
  172. /* End of implementation class template. */
  173. #endif
  174.  
  175.  
  176. #endif /* __gen_nsIProgressDialog_h__ */
  177.